﻿using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Diagnostics;
using System;
using System.Threading;
using DSPL.Contracts;
using DSPL.Contracts.Interfaces;
using DSPL.DataAccess.MasterData;


namespace DSPL.Services.Help
{
    public class LoadHelp : ILoadHelp
    {

        private GetHelp _getHelp;
        public event DSPL.Contracts.Interfaces.LoadHelpForm DisplayHelpForm;


        public LoadHelp()
        {
            _getHelp = new GetHelp();
        }
        public void GetHelp(string helpName)
        {
            var dtData = new DataTable();

           
            switch (helpName)
            {
                case "HelpArea":
                    dtData = _getHelp.HelpArea();
                    break;

                case "HelpBank":
                    dtData = _getHelp.HelpBank();
                    break;

                case "HelpAccCashBank":
                    dtData = _getHelp.HelpAccCashBank();
                    break;

                case "HelpAccAlo":
                    dtData = _getHelp.HelpAccAlo();
                    break;

                case "HelpAccCode":
                    dtData = _getHelp.HelpAccCode();
                    break;

                case "HelpType":
                    dtData = _getHelp.HelpType();
                    break;

                case "HelpAccounts":
                    dtData = _getHelp.HelpAccounts();
                    break;

                case "HelpPriLvl":
                    dtData = _getHelp.HelpPriLvl();
                    break;

                case "HelpAccPettyCash":
                    dtData = _getHelp.HelpAccPettyCash();
                    break;

                case "HelpAccType2":
                    dtData = _getHelp.HelpAccType2();
                    break;

                case "HelpAccType4":
                    dtData = _getHelp.HelpAccType4();
                    break;

                case "HelpAllAccounts":
                    dtData = _getHelp.HelpAllAccounts();
                    break;

                case "HelpAuthority":
                    dtData = _getHelp.HelpAuthority();
                    break;

                case "HelpBinLoc":
                    dtData = _getHelp.HelpBinLoc();
                    break;

                case "HelpCardType":
                    dtData = _getHelp.HelpCardType();
                    break;

                case "HelpCashBookAccounts":
                    dtData = _getHelp.HelpCashBookAccounts();
                    break;

                case "HelpStkInHandAcc":
                    dtData = _getHelp.HelpStkInHandAcc();
                    break;

                case "HelpCashFlowCode":
                    dtData = _getHelp.HelpCashFlowCode();
                    break;

                case "HelpCheque":
                    dtData = _getHelp.HelpCheque();
                    break;

                case "HelpCombCode":
                    dtData = _getHelp.HelpCombCode();
                    break;

                case "HelpConAcc":
                    dtData = _getHelp.HelpConAcc();
                    break;

                case "HelpCostCentre":
                    dtData = _getHelp.HelpCostCentre();
                    break;

                case "HelpTaxHed":
                    dtData = _getHelp.HelpTaxHed();
                    break;

                case "HelpUnit":
                    dtData = _getHelp.HelpUnit();
                    break;

                case "HelpCreGrp":
                    dtData = _getHelp.HelpCreGrp();
                    break;

                case "HelpCurrency":
                    dtData = _getHelp.HelpCurrency();
                    break;

                case "HelpPurchaseAcc":
                    dtData = _getHelp.HelpPurchaseAcc();
                    break;

                case "HelpDiscountAcc":
                    dtData = _getHelp.HelpDiscountAcc();
                    break;

                case "HelpSalesAcc":
                    dtData = _getHelp.HelpSalesAcc();
                    break;

                case "HelpCustomer":
                    dtData = _getHelp.HelpCustomer();
                    break;

                case "HelpDebGrp":
                    dtData = _getHelp.HelpDebGrp();
                    break;

                case "HelpDepartment":
                    dtData = _getHelp.HelpDepartment();
                    break;

                case "HelpDepPolicy":
                    dtData = _getHelp.HelpDepPolicy();
                    break;

                case "HelpfAssets":
                    dtData = _getHelp.HelpfAssets();
                    break;

                case "HelpfBrand":
                    dtData = _getHelp.HelpfBrand();
                    break;

                case "HelpfCategory":
                    dtData = _getHelp.HelpfCategory();
                    break;

                case "HelpfDepartment":
                    dtData = _getHelp.HelpfDepartment();
                    break;

                case "HelpfDepMethod":
                    dtData = _getHelp.HelpfDepMethod();
                    break;

                case "HelpfGAcc":
                    dtData = _getHelp.HelpfGAcc();
                    break;

                case "HelpFileNo":
                    dtData = _getHelp.HelpFileNo();
                    break;

                case "HelpffItems":
                    dtData = _getHelp.HelpffItems();
                    break;

                case "HelpffLocation":
                    dtData = _getHelp.HelpffLocation();
                    break;

                case "HelpffSCategory":
                    dtData = _getHelp.HelpffSCategory();
                    break;

                case "HelpffSlocation":
                    dtData = _getHelp.HelpffSlocation();
                    break;

                case "HelpGLfYea":
                    dtData = _getHelp.HelpGLfYea();
                    break;

                case "HelpTaxCode":
                    dtData = _getHelp.HelpTaxCode();
                    break;

                case "HelpGRNHed":
                    dtData = _getHelp.HelpGRNHed();
                    break;

                //case "HelpGRNRStk":
                //    dtData = HelpGRNRStk();
                //    break;

                //case "HelpGroup":
                //    dtData = HelpGroup();
                //    break;


                //case "HelpBankAccounts":
                //    dtData = HelpBankAccounts();
                //    break;

                //case "HelpPettyCashAccounts":
                //    dtData = HelpPettyCashAccounts();
                //    break;

                //case "HelpPoHed":
                //    dtData = HelpPoHed();
                //    break;

                //case "HelpSupplier":
                //    dtData = HelpSupplier();
                //    break;

                //case "HelpLocation":
                //    dtData = HelpLocation();
                //    break;

                //case "HelpUserCost":
                //    dtData = HelpUserCost();
                //    break;

                //case "HelpItems":
                //    dtData = HelpItems();
                //    break;

                //case "HelpSalesRep":
                //    dtData = HelpSalesRep();
                //    break;

                //case "HelpRank":
                //    dtData = HelpRank();
                //    break;


            }

            if (DisplayHelpForm != null)
            {
                DisplayHelpForm(dtData);
            }

        }
        
       
    }
}
